# 个人所得税计算器
salary = float(input('本月收入：'))
insurance = float(input('五险一金'))
diff = salary - insurance - 3500
if diff <= 0:
    rate = 0
    deduction = 0
elif diff < 1500:
    rate = 0.03
    deduction = 0
elif diff < 4500:
    rate = 0.1
    deduction = 105
elif diff < 9000:
    rate = 0.2
    deduction = 55
else:
    rate = 0.45
    deduction = 13505
tax = abs(diff * rate - deduction)
print('个人所得税：￥%.2f元' % tax)
print('实际到手收入：￥%.2f元' % (diff + 3500 - tax))


